package com.ww.scm.valueObject.mat;

import com.ww.scm.entity.mat.FinanceAccount;
import com.ww.scm.entity.mat.FinanceWastebook;
import com.ww.scm.entity.pub.Dictionary;
import com.ww.scm.valueObject.ValueObject;


public class FinanceWastebookVo extends ValueObject{
	
	
	//账号ID
	private String accountId;  
	
	// 收支类别ID
	private String inoutTypeId;
	
	//收支类别名称
	private String inoutTypeName;
 
	// 收支项目ID
	private String inoutItemId;
	
	//收支项目名称
	private String inoutItemName;
 
	//余款
	private Double money=0.0;
	
	//是否自动生成
	private String auto;	
	
	//冲红标识
	private String rollbackFlag;
	
	//打款类别ID
	private String inAccountItemId;
	
	//打款类别名称
	private String inAccountItemName; 
	
	//打款方式ID
	private String inAccountMethodId;
	
	//打款方式名称
	private String inAccountMethodName; 
	
	//所属门店ID
	private String shopId;
	
	//所属门店名称
	private String shopName; 
	
	//资金形式ID
	private String accountTypeId;
	
	//资金形式名称
	private String accountTypeName; 
	
	//事务日期
	private String inOutDate;
	 
	public FinanceWastebookVo() {
	}

	public FinanceWastebookVo(FinanceWastebook financeWastebook) {
		super(financeWastebook); 
		FinanceAccount financeAccount =financeWastebook.getAccount();
		if(financeAccount!=null){
			this.accountId=financeAccount.getId();
		}
		Dictionary inoutType= financeWastebook.getInoutType();
		if(inoutType!=null){
			this.inoutTypeId=inoutType.getId();
			this.inoutTypeName=inoutType.getName();
		}
		Dictionary inoutItem= financeWastebook.getInoutItem();
		if(inoutItem!=null){
			this.inoutItemId=inoutItem.getId();
			this.inoutItemName=inoutItem.getName();
		}
		Dictionary inAccountItem= financeWastebook.getInAccountItem();
		if(inAccountItem!=null){
			this.inAccountItemId=inAccountItem.getId();
			this.inAccountItemName=inAccountItem.getName();
		}
		Dictionary inAccountMethod= financeWastebook.getInAccountMethod();
		if(inAccountMethod!=null){
			this.inAccountMethodId=inAccountMethod.getId();
			this.inAccountMethodName=inAccountMethod.getName();
		}
		Dictionary shop= financeWastebook.getShop();
		if(shop!=null){
			this.shopId=shop.getId();
			this.shopName=shop.getName();
		}
		Dictionary accountType= financeWastebook.getAccountType();
		if(accountType!=null){
			this.accountTypeId=accountType.getId();
			this.accountTypeName=accountType.getName();
		}
		this.inOutDate=financeWastebook.getInOutDate();
		this.money=financeWastebook.getMoney();
		this.auto=financeWastebook.getAuto();
		this.rollbackFlag=financeWastebook.getRollbackFlag();
	}

	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public String getInoutTypeId() {
		return inoutTypeId;
	}

	public void setInoutTypeId(String inoutTypeId) {
		this.inoutTypeId = inoutTypeId;
	}

	public String getInoutTypeName() {
		return inoutTypeName;
	}

	public void setInoutTypeName(String inoutTypeName) {
		this.inoutTypeName = inoutTypeName;
	}

	public String getInoutItemId() {
		return inoutItemId;
	}

	public void setInoutItemId(String inoutItemId) {
		this.inoutItemId = inoutItemId;
	}

	public String getInoutItemName() {
		return inoutItemName;
	}

	public void setInoutItemName(String inoutItemName) {
		this.inoutItemName = inoutItemName;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public String getAuto() {
		return auto;
	}

	public void setAuto(String auto) {
		this.auto = auto;
	}

	public String getRollbackFlag() {
		return rollbackFlag;
	}

	public void setRollbackFlag(String rollbackFlag) {
		this.rollbackFlag = rollbackFlag;
	}

	public String getInAccountItemId() {
		return inAccountItemId;
	}

	public void setInAccountItemId(String inAccountItemId) {
		this.inAccountItemId = inAccountItemId;
	}

	public String getInAccountItemName() {
		return inAccountItemName;
	}

	public void setInAccountItemName(String inAccountItemName) {
		this.inAccountItemName = inAccountItemName;
	}

	public String getInAccountMethodId() {
		return inAccountMethodId;
	}

	public void setInAccountMethodId(String inAccountMethodId) {
		this.inAccountMethodId = inAccountMethodId;
	}

	public String getInAccountMethodName() {
		return inAccountMethodName;
	}

	public void setInAccountMethodName(String inAccountMethodName) {
		this.inAccountMethodName = inAccountMethodName;
	}

	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	public String getAccountTypeId() {
		return accountTypeId;
	}

	public void setAccountTypeId(String accountTypeId) {
		this.accountTypeId = accountTypeId;
	}

	public String getAccountTypeName() {
		return accountTypeName;
	}

	public void setAccountTypeName(String accountTypeName) {
		this.accountTypeName = accountTypeName;
	}

	public String getInOutDate() {
		return inOutDate;
	}

	public void setInOutDate(String inOutDate) {
		this.inOutDate = inOutDate;
	}
	 
	

}
